--[[
LuCI - Lua Configuration Interface

Copyright 2014 Steven Barth <emongxx@gmail.com>
Blog http://blog.emong.me

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

$Id$
]]--

module("luci.controller.emongbwctrl", package.seeall)

function index()
	if not nixio.fs.access("/etc/config/emongbwctrl") then
		return
	end
	
	local page

	page = entry({"admin", "network", "emongbwctrl"}, cbi("emongbwctrl"), _("网络带宽控制"))
	page.i18n = "网络带宽控制"
	page.dependent = true
end
